home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Extra 1997 #1 / Amiga Plus Extra 1997 #1.iso / programme / netz / awdpal / helpdocs / examples < prev    next >
Text File  |  1980-01-07  |  3KB  |  63 lines

  1. Back to MENU
  2. Back to TUTORIAL
  3. Back to COMMANDS
  4.  
  5.                         AMAL examples
  6.                         -------------
  7.  
  8. The best way to get to grips with AMAL is to take a look at the
  9. included AMAL scripts kept within the "commands" directory.
  10. Below are some small examples which may give you some ideas of
  11. scripts you may find useful.
  12.  
  13. 1. An extended RELOAD command:
  14.  
  15. This script will force AWeb to load in the current document, move
  16. the AWebEd screen to the back (thereby forcing the AWeb screen to
  17. the front), wait five seconds, and then bring the AWebEd screen back
  18. to the front.  It allows the user to reload the current document
  19. into AWeb and look at it briefly, without faffing about with
  20. manually sliding the screens around.
  21.  
  22. SAVDOC DOCPATH      - tells AWebEd to save the current document.
  23. SPEAKTO AWEB.1      - tells AWebEd which Arexx port to send messages
  24.                       to.
  25. SEND open DOCPATH foce - tells AWEB.1 (the AWeb arexx port) to force
  26.                          open the current document.
  27. SCREEN TOBACK       - forces the AWebEd screen to the back.
  28. DOS wait 5          - runs a DOS command to delay execution of
  29.                       script for five seconds.
  30. SCREEN TOFRONT      - forces the AWebEd screen to the front.
  31.  
  32. 2. An extended IMAGE_LINK command:
  33.  
  34. It could be that you do not want to store all your Website graphics
  35. and HTML documents in the AWebEd directory tree.  This script is a
  36. modification of IMAGE_HL in which the user has told AWebEd to look
  37. for the images and documents totally different places on the user's
  38. harddisk.
  39.  
  40. TYPE <A HREF="file://localhost/         - Types the start of the
  41.                                         locallink tags.
  42. SETDIRECTORY PATH work:wordpro/docs     - Sets the current
  43.                                          directory.
  44. INSERTPATH                              - Prompts the user for the
  45.                                             file.
  46. TYPE "> IMG SRC="file://localhost/      - More tags.
  47. SETDIRECTORY PATH work:graphics/gifs    - Changes directory again.
  48. INSERTPATH                              - Prompts the user for the
  49.                                             file.
  50. TYPE " </A>                             - Finish off the tags.
  51.  
  52.  
  53. 3. Quick list generator:
  54.  
  55. This script simply inserts the <LI> tag at the start of the line,
  56. and moves the cursor down to the next.  This script would speed up
  57. the generation of very long lists.
  58.  
  59. MOVECURSOR TOSTARTOFLINE        - Moves the cursor to the start of
  60.                                     the current line.
  61. TYPE <LI>                       - Types the tag.
  62. MOVECURSOR DOWN 1               - Moves the cursor down one line.
  63.